package cn.tedu.weibo.exception;

import cn.tedu.weibo.common.response.StatusCode;
import lombok.Getter;
import lombok.Setter;

public class ServiceException extends RuntimeException{
    @Getter
    private StatusCode statusCode;

    public ServiceException(StatusCode statusCode) {

        super(statusCode.getMsg());
        this.statusCode=statusCode;
    }
}
